define(function(require, exports, module) {
	var $=require('zepto');
	var iScroll=require('iscroll');
	var Swipe=require('libs/hhSwipe');
	var Tab=require("moduls/tab");
	var t=new Tab();
	var Mobilebone = require('mobilebone');
	var myScroll;
	var use=0;
	exports.init = function(page) {
		console.log('--------pageLife.js---------');
		t.setActive("pageHome");
		myScroll = new iScroll($(page).find(".mui-content")[0].id,{vScrollbar:false});
		setTimeout(function(){
			refresh(myScroll,$(page).find(".mui-content")[0].id);
		},1000);
	};
	exports.set = function(page) {
		//console.log('--------pageLife.js---------');
		t.hide();
		if(use!=0){
			use++;
			
		}else{
			use++;
		}
	}
	function refresh(myScroll,id){
		var height = window.screen.height;
		var scrollerHeight=height-44;
		$("#"+id).height(scrollerHeight);
		myScroll.refresh();
	}
});